home *** CD-ROM | disk | FTP | other *** search
- -- card: 65097 from stack: in
- -- bmap block id: 0
- -- flags: 0000
- -- background id: 4507
- -- name:
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=410 top=88 right=110 bottom=488
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Example 1
- ----- HyperTalk script -----
- on mouseUp
- --An example of a REPEAT control structure
- repeat while the shiftKey is up
- put "The time is:" && the long time & ". Press the Shift key to see the script."
- end repeat
- edit script of card button "example 1" --so you can see the script
- end mouseUp
-
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: 8004
- -- rect: left=410 top=184 right=206 bottom=486
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Example 2
- ----- HyperTalk script -----
- on mouseUp
- --An example of a REPEAT control structure
- repeat with x = 1 to 40
- if (x MOD 10) > 4 then next repeat
- put "Numbers ending in 0,1,2,3, or 4: " && x
- end repeat
- edit script of card button "example 2" --so you can see the script
- end mouseUp
-
-
-
- -- part contents for background part 1
- ----- text -----
- repeat while <true or false expression>
- <command>
- <command>
- end repeat
-
- repeat with <variable> = <number> to <number>
- <command>
- <command>
- end repeat
- exit <message> -- leave the current script in the
- middle. Don't do the rest of the commands.
- (Useful with "if"). (<message> is the name of the
- current handler).
-
-
- -- part contents for background part 2
- ----- text -----
- Other control structures (cont.)
-
- -- part contents for background part 44
- ----- text -----
- repeat while
-
-
-
-
- repeat with
-
-
-
- exit
-
-
-
-
- -- part contents for background part 43
- ----- text -----
- 267,189